﻿package com.air.swfmessengergui.display.slices
{
	
import flash.display.MovieClip;
import flash.events.MouseEvent;
import flash.display.NativeWindow;

public class Slice extends MovieClip
{
	
	public function Slice() {
		
		addEventListener(MouseEvent.MOUSE_DOWN, mdow);
	}
	
	
	private function mdow(e:MouseEvent):void {
		if (x==0 || y==0) {//slice de canto, n redimenciona a janela
			if (stage) {
				var nw:NativeWindow = stage.nativeWindow;
				nw.startMove();
			}
		} else {
			if (stage) {//redimenciona
				
			}
		}
	}
	
}
}